/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 * No deletion without permission, or be held responsible to law.
 * @author lzw
 */
import { defHttp } from '/@/utils/http/axios';
import { useGlobSetting } from '/@/hooks/setting';
import { BasicModel, Page } from '../model/baseModel';

const { adminPath } = useGlobSetting();

export interface PaymentConfirmation extends BasicModel<PaymentConfirmation> {
  userName?: string; // 负责人
  repaymentTime?: string; // 还款时间
  repaymentMoney?: string; // 还款金额
  proofs?: any[]; // 还款凭证
  approver?: string; // 审批人
  parentId?: string; // 所属id
  auditStatus?: string; // 状态
  caseSource?: string; //来源
  dtbtor?: string; //债务人
  repaymentAccountInformation?: string; //还款账户信息
}

export const paymentConfirmationList = (params?: PaymentConfirmation | any) =>
  defHttp.get<PaymentConfirmation>({ url: adminPath + '/operating/paymentConfirmation/list', params });

export const paymentConfirmationListData = (params?: PaymentConfirmation | any) =>
  defHttp.post<Page<PaymentConfirmation>>({ url: adminPath + '/operating/paymentConfirmation/listData', params });

export const paymentConfirmationForm = (params?: PaymentConfirmation | any) =>
  defHttp.get<PaymentConfirmation>({ url: adminPath + '/operating/paymentConfirmation/form', params });

export const paymentConfirmationSave = (params?: any, data?: PaymentConfirmation | any) =>
  defHttp.postJson<PaymentConfirmation>({ url: adminPath + '/operating/paymentConfirmation/save', params, data });

export const paymentConfirmationDelete = (params?: PaymentConfirmation | any) =>
  defHttp.get<PaymentConfirmation>({ url: adminPath + '/operating/paymentConfirmation/delete', params });

export const shenhe = (params?: PaymentConfirmation | any) =>
  defHttp.get<PaymentConfirmation>({ url: adminPath + '/operating/paymentConfirmation/shenhe', params });

export const hexiao = (params?: PaymentConfirmation | any) =>
  defHttp.get<PaymentConfirmation>({ url: adminPath + '/operating/paymentConfirmation/hexiao', params });